
<script src="./fuentes/view/pokerMovimiento/js/script_ajax_poker_movimiento.js" type="text/javascript"></script>
<div class="clearfix"></div>
<div class="content">  

    <input type="hidden" name="tipoListado"  id="tipoListado"  class="form-control" value="<?php echo $tipoListado; ?>">
    <input type="hidden" name="torneoIdList"  id="torneoIdList"  class="form-control" value="<?php echo $torneoIdList; ?>">


    <!-- Modal -->
    <div class="modal fade" id="myModalPokerSpecificADD" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 id="myModalLabel" class="semi-bold">Movimiento del Participante</h4>

                </div>

                <div class="modal-body" >

                    <div id="formPokerSpecific">

                    </div>


                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
        <!-- /.modal -->
    </div>


    <span  style="float: right;"><h2><?php if (!empty($torneo)) echo $torneo[0]['nombre']; ?></h2></span>
    <div class="page-title" style="width: 300px"> 
        <a href="javascript:void(0)" onclick="volver();" rel="ajax" class="active"><i class="icon-custom-left"></i><h3>Lista de Participantes</h3></a>
    </div> 

    <span  class="text-center"><h3><?php if (!empty($persona)) echo $persona[0]['apenom']; ?></h3></span>

    <div class="row" id="movimiento">
        <div class="col-md-12">
            <div class="grid simple ">
                <div class="grid-title no-border">

                    <h4 ><span class="semi-bold">Movimientos por Participante </span></h4>


                    <!--                    <button style="float: right;" class="btn btn-success btn-xs " id="agregar" data-toggle="modal"  data-target="#myModalPokerSpecificADD"> Agregar</button>-->

                    <div class="labelRight" id="error">	</div>

                </div>
                <div class="grid-body no-border">

                    <table class="table table-hover no-more-tables table-condensed  " id="pokerSpecificTABLE">
                        <thead>
                            <tr>

                                <th  class='text-center'  style="width:2%">Fecha</th>
                                <th  style="width:2%">Tipo</th>
                                <th  style="width:10%">Descripción</th>

                                <th class='text-right' style="width:2%">Ingreso</th>
                                <th class='text-right' style="width:2%">Egreso</th>
                                <th class='text-right' style="width:1%">Detalle</th>

                            </tr>
                        </thead>
                        <tbody id="pokerSpecificList">
                            <?php
                            if ($pokerMovimiento) {
                                foreach ($pokerMovimiento as $dato) {
                                    echo "<tr>"
                                    . "<td class='text-center' >" . date('d/m/Y h:m:s', strtotime($dato["fecha_hora"])) . "</td>"
                                    . "<td>" . $dato["tipo"] . "</td>"
                                    . "<td>" . $dato["descripcion"] . "</td>"
                                    . "<td class='text-right'>" . $dato["ingreso"] . "</td>"
                                    . "<td class='text-right'>" . $dato["egreso"] . "</td>"
                                    . "<td class='text-center'><button class='btn btn-success btn-xs btn-mini' onclick='viewDatos(" . $dato["id"] . ")' title='Ver Detalle' ><i class='fa fa-info'></i></button></td>"
                                    . "</tr>";
                                }
                            } else {
                                echo "<tr><td colspan='6' class='text-center'><h4> No existen Movimientos </h4></td></tr>";
                            }

                            function getLabel($yes) {
                                if ($yes)
                                    return "<span class='label label-success'>SI</span>";
                                else
                                    return "<span class='label label-warning'>NO</span>";
                            }
                            ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <!-- END PAGE --> 
</div>




